﻿<Window x:Class="Cyclops.MainApplication.Options.View.SettingsView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:Options="clr-namespace:Cyclops.MainApplication.Options.View" 
        xmlns:Controls="clr-namespace:Cyclops.MainApplication.Options.Controls" 
        Height="518" MinHeight="518" MaxHeight="518" MinWidth="500" Width="600"  UseLayoutRounding="True"
        TextOptions.TextFormattingMode="Display" 
        TextOptions.TextRenderingMode="ClearType"
        WindowStartupLocation="CenterOwner">
    <Window.Resources>
       
        <Style TargetType="TabItem">
            <Setter Property="Width" Value="74"/>
        </Style>

        <Style TargetType="TextBlock">
            <Setter Property="HorizontalAlignment" Value="Center"/>
        </Style>

    </Window.Resources>
    <Grid Margin="0,0,0,0"  Background="{x:Static SystemColors.ControlBrush}">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="32"/>
        </Grid.RowDefinitions>
       
        <TabControl TabStripPlacement="Left" Margin="5">
            <TabItem>
                <TabItem.Header>
                    <StackPanel>
                        <Image Width="40" Source="..\Resources\web.png"/>
                        <TextBlock Text="{Binding Path=Settings.CommonHeader, Source={StaticResource ResourceWrapper}}"/>
                    </StackPanel>
                </TabItem.Header>
                <Options:CommonSettings x:Name="commonSettings" />
            </TabItem>


            <TabItem>
                <TabItem.Header>
                    <StackPanel>
                            <Image Width="40" Source="..\Resources\window_preferences.png"/>
                        <TextBlock Text="{Binding Path=Settings.InterfaceHeader, Source={StaticResource ResourceWrapper}}"/>
                    </StackPanel>
                </TabItem.Header>
                <Options:InterfaceSettings/>
            </TabItem>


            <TabItem>
                <TabItem.Header>
                    <StackPanel>
                            <Image Width="40" Source="..\Resources\user1_time.png"/>
                        <TextBlock Text="{Binding Path=Settings.StatusHeader, Source={StaticResource ResourceWrapper}}"/>
                    </StackPanel>
                </TabItem.Header>
                <Options:StatusSettings x:Name="statusSettings" />
            </TabItem>


            <TabItem IsEnabled="False">
                <TabItem.Header>
                    <StackPanel>
                            <Image Width="40" Source="..\Resources\keyboard_key.png"/>
                        <TextBlock Text="{Binding Path=Settings.HotkeyHeader, Source={StaticResource ResourceWrapper}}"/>
                    </StackPanel>
                </TabItem.Header>
                <Options:HotkeysSettings x:Name="hotkeysSettings" />
            </TabItem>


            <TabItem>
                <TabItem.Header>
                    <StackPanel>
                            <Image Width="40" Source="..\Resources\sound.png"/>
                        <TextBlock Text="{Binding Path=Settings.SoundsHeader, Source={StaticResource ResourceWrapper}}"/>
                    </StackPanel>
                </TabItem.Header>
                <Options:SoundsSettings x:Name="soundsSettings" DataContext="{Binding}"/>
            </TabItem>


            <TabItem IsEnabled="False">
                <TabItem.Header>
                    <StackPanel>
                            <Image Width="40" Source="..\Resources\text_rich_colored.png"/>
                        <TextBlock Text="{Binding Path=Settings.StyleHeader, Source={StaticResource ResourceWrapper}}"/>
                    </StackPanel>
                </TabItem.Header>
                <Options:StyleSettings x:Name="styleSettings" />
            </TabItem>
            </TabControl>
        <Button IsDefault="True" Content="{Binding Path=Common.Ok, Source={StaticResource ResourceWrapper}}" 
                Command="{Binding Commit}" Grid.Row="1" Width="80" HorizontalAlignment="Right" Margin="2,2,92,6"/>
        <Button IsCancel="True" Content="{Binding Path=Common.Cancel, Source={StaticResource ResourceWrapper}}" 
                Command="{Binding Cancel}" Grid.Row="1" Width="80" HorizontalAlignment="Right" Margin="2,2,6,6"/>
    </Grid>
</Window>
